<?php echo '<?xml version="1.0" encoding="utf-8"?>'."\n"; ?>
<markers>
<?php foreach($events as $event): ?>
  <marker name="<?php echo $event->name ?>" 
          description="<?php echo $event->description ?>" 
          address="<?php echo $event->NfPlace->address ?>" 
          zip_code="<?php echo $event->NfPlace->zip_code ?>" 
          username="<?php echo $event->sfGuardUser->username ?>" 
          user_id="<?php echo $event->sfGuardUser->id ?>" 
          complete_name="<?php echo $event->sfGuardUser->first_name.' '.$event->sfGuardUser->last_name ?>" 
          lat="<?php echo $event->NfPlace->latitude ?>" 
          lng="<?php echo $event->NfPlace->longitude ?>" 
          distance="<?php echo $event->distance ?>" />
<?php endforeach ?>
</markers>
